/****************************************************
          File Name:10-2.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Mon 22 Dec 2014 09:20:22 PM CST
*****************************************************/

// see 10-2.h 
// if use 'static const LIMT = 25' and 'char fname[LIMIT]'
// then can NOT compile, but the book wrote on P371(10.6.1)
// used this mothed, and P923(10.5) used 'char fname[25]' 
// this format, and this works will.
//
// I don't know why, c++11 ?

#include"10-2.h"
#include<iostream>

int main()
{
    Person one;
    Person two("Smythecraft");
    Person three("Dimwiddy", "sam");

    one.show();
    two.show();
    three.show();

    std::cout <<"------another format------" << std::endl;

    one.formalshow();
    two.formalshow();
    three.formalshow();

    return 0;
}
